package com.example.dao;

import com.example.domain.User;
import org.apache.ibatis.annotations.Update;

public interface ChangePasswordDao {
    // 修改密码
    @Update("UPDATE user SET password = #{password} WHERE username = #{username} AND password = #{oldPassword}")
    void updatePassword(User user);
}
